package com.hejjon.graph.dao.impl;

import com.hejjon.graph.dao.BaseNeo4jQueryDAO;
import org.neo4j.driver.Driver;
import org.neo4j.driver.Result;
import org.neo4j.driver.Session;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @author: cs
 * @date: 2025-04-28 06:56:36
 * @since: 1.0
 */
@Repository
public class BaseNeo4jQueryDAOImpl implements BaseNeo4jQueryDAO {

    @Resource
    private Driver driver;

    @Override
    public Result query(String cypher) {
        Session session = driver.session();
        return session.run(cypher);
    }

}
